package com.example.demo3.V3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;

@Controller
public class UserService {
    @Autowired
    @Qualifier("s3")
    private Student ss3;
    public void print() {
        System.out.println("do service");
        System.out.println(ss3);
    }
    @Autowired
    @Qualifier("s2")
    private Student ss2;
    public void print2() {
        System.out.println("do service");
        System.out.println(ss2);
    }
}
